package com.ruoyi.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.mapper.ErpOutboundOrderMapper;
import com.ruoyi.domain.ErpOutboundOrder;
import com.ruoyi.service.IErpOutboundOrderService;

/**
 * 出库单管理Service业务层处理
 * 
 * @author zhp
 * @date 2025-08-19
 */
@Service
public class ErpOutboundOrderServiceImpl implements IErpOutboundOrderService 
{
    @Autowired
    private ErpOutboundOrderMapper erpOutboundOrderMapper;

    /**
     * 查询出库单管理
     * 
     * @param id 出库单管理主键
     * @return 出库单管理
     */
    @Override
    public ErpOutboundOrder selectErpOutboundOrderById(Long id)
    {
        return erpOutboundOrderMapper.selectErpOutboundOrderById(id);
    }

    /**
     * 查询出库单管理列表
     * 
     * @param erpOutboundOrder 出库单管理
     * @return 出库单管理
     */
    @Override
    public List<ErpOutboundOrder> selectErpOutboundOrderList(ErpOutboundOrder erpOutboundOrder)
    {
        return erpOutboundOrderMapper.selectErpOutboundOrderList(erpOutboundOrder);
    }

    /**
     * 新增出库单管理
     * 
     * @param erpOutboundOrder 出库单管理
     * @return 结果
     */
    @Override
    public int insertErpOutboundOrder(ErpOutboundOrder erpOutboundOrder)
    {
        return erpOutboundOrderMapper.insertErpOutboundOrder(erpOutboundOrder);
    }

    /**
     * 修改出库单管理
     * 
     * @param erpOutboundOrder 出库单管理
     * @return 结果
     */
    @Override
    public int updateErpOutboundOrder(ErpOutboundOrder erpOutboundOrder)
    {
        return erpOutboundOrderMapper.updateErpOutboundOrder(erpOutboundOrder);
    }

    /**
     * 批量删除出库单管理
     * 
     * @param ids 需要删除的出库单管理主键
     * @return 结果
     */
    @Override
    public int deleteErpOutboundOrderByIds(Long[] ids)
    {
        return erpOutboundOrderMapper.deleteErpOutboundOrderByIds(ids);
    }

    /**
     * 删除出库单管理信息
     * 
     * @param id 出库单管理主键
     * @return 结果
     */
    @Override
    public int deleteErpOutboundOrderById(Long id)
    {
        return erpOutboundOrderMapper.deleteErpOutboundOrderById(id);
    }
}
